package com.zhiyou.homework.pojo;

import java.util.Date;

/**
 * 学生类扩展类
 */
public class StudentExt extends Student{

    private Integer shstatus; // 学生作业提交状态
    private Date shsubtime; // 学生作业提交时间
    private Date shreleasetime; // 老师发出作业时间

    public Integer getShstatus() {
        return shstatus;
    }

    public void setShstatus(Integer shstatus) {
        this.shstatus = shstatus;
    }

    public Date getShsubtime() {
        return shsubtime;
    }

    public void setShsubtime(Date shsubtime) {
        this.shsubtime = shsubtime;
    }

    public Date getShreleasetime() {
        return shreleasetime;
    }

    public void setShreleasetime(Date shreleasetime) {
        this.shreleasetime = shreleasetime;
    }

    public StudentExt(Student stu) {
        super.setSid(stu.getSid());
        super.setSname(stu.getSname());
        super.setSgid(stu.getSgid());
        super.setSex(stu.getSex());
        super.setSimage(stu.getSimage());
        super.setSbedNumber(stu.getSbedNumber());
        super.setSbrithday(stu.getSbrithday());
        super.setSpid(stu.getSpid());
        super.setSnation(stu.getSnation());
    }

    @Override
    public String toString() {
        return "StudentExt{" +
                "shstatus=" + shstatus +
                ", shsubtime=" + shsubtime +
                '}';
    }
}
